#include"list.h"
int main()
{
	bit::list<int> lt1;
	lt1.push_back(1);
	lt1.push_back(2);
	lt1.push_back(3);
	lt1.push_back(4);

	bit::list<int>::iterator it1 = lt1.begin();
	while (it1 != lt1.end())
	{
		cout << *it1 << " ";
		++it1;
	}
	cout << endl;

	lt1.pop_back();
	lt1.push_front(2);
	lt1.push_front(3);
	lt1.push_front(4);

	for (auto e : lt1)
	{
		cout << e << " ";
	}
	cout << endl;
	return 0;
}